# coding=utf-8
import arcpy
path = r'D:\Test';
arcpy.env.workspace = path
shp = r'D:\Test\ttt\肖家沟河.shp'.decode('utf-8')
cs1 = arcpy.da.UpdateCursor(shp,['SHAPE@','name'])

shp2 = r'D:\Test\ttt\r1.shp'.decode('utf-8')
cs2 = arcpy.da.SearchCursor(shp2,['SHAPE@','name'])

for row1 in cs1:
    rivMain = row1[0]
    for row2 in cs2:
        print row2[1],row2[0].lastPoint.within(rivMain)